package map;

import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import plagiarismChecker.MapReduceSkeleton;

public class MapJob2 extends Mapper<Text, Text, Text, Text> {

	@Override
	protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {
		
		String keyword = key.toString();
		String [] keywords = keyword.split(MapReduceSkeleton.separator);
		
		context.write(new Text(keywords[0]), new Text(keywords[1] + MapReduceSkeleton.separator + value));
	}
}